//
//  ViewController.m
//  转盘
//
//  Created by app19 on 15/7/15.
//  Copyright (c) 2015年 app19. All rights reserved.
//

#import "ViewController.h"
#import "MJWheel.h"

@interface ViewController ()

- (IBAction)start;
- (IBAction)stop;
@property (nonatomic, weak) MJWheel *wheel;

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    MJWheel *wheel = [MJWheel wheel];
    wheel.center = CGPointMake(self.view.frame.size.width * 0.5, self.view.frame.size.height * 0.5);
    [self.view addSubview:wheel];
    self.wheel = wheel;
}

- (IBAction)start {
    [self.wheel startRotating];
}

- (IBAction)stop {
    [self.wheel stopRotating];
}


@end
